#include <stdio.h>
#include <string.h>

int* Unrepeatchar(const char * str,int* loop)
{
    int cnt = 0;
    int length = strlen(str);
    for(int idx = 0;idx < length;idx++)
    {
        for(int jdx = 0;jdx < length;jdx++)
        {
            if(idx != jdx && str[idx]==str[jdx])
            {
                break;
            }
            else if(jdx==length-1)
            {
                loop[cnt] = idx;
                cnt++;
                break;
            }
        }
    }
    return loop;
}

int main()
{
    char str[]="aabbccbbffeerggkghhhhjjjj";
    int loop[100]={0};
    Unrepeatchar(str,loop);
    printf("str[%d]=%c\n",loop[0],str[loop[0]]);
}